package org.idea.qiyu.framework.jmh.demo;

import java.util.concurrent.TimeUnit;

/**
 * @Author linhao
 * @Date created in 10:35 下午 2021/12/17
 */
public class TestCountDemo {

    public static void countTest() {
        long begin = System.currentTimeMillis();
        long sum = 0;
        for (long i = 0; i < 10000000000L; i++) {
            sum = sum + i;
        }
        System.out.println(System.currentTimeMillis() - begin);
    }


    public static void test() {
        int a = 0;
    }

    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 600; i++) {
            test();
        }
        TimeUnit.SECONDS.sleep(1);
    }

}
